package org.cnc.explain.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

/**
 * @author zhiyong.tan
 */
@Aspect
public class MethodCheckAspect {

	@Around("@annotation(org.cnc.explain.aop.MethodCheck)")
	public Object handle(ProceedingJoinPoint point) throws Throwable {
		System.out.println("before method check");
		Object res = point.proceed();
		System.out.println("after method check");
		return res;
	}
}
